<% title "Change Orders" %>

<table>
  <tr>
    <th>Project</th>
    <th>Sub Contractor</th>
    <th>Is Effective</th>
    <th>Effective At</th>
    <th>Summary</th>
    <th>Description</th>
    <th>Recommended By</th>
    <th>Recommended At</th>
    <th>Accepted By</th>
    <th>Accepted At</th>
  </tr>
  <% for change_order in @change_orders %>
    <tr>
      <td><%=h change_order.project_id %></td>
      <td><%=h change_order.sub_contractor_id %></td>
      <td><%=h change_order.is_effective %></td>
      <td><%=h change_order.effective_at %></td>
      <td><%=h change_order.summary %></td>
      <td><%=h change_order.description %></td>
      <td><%=h change_order.recommended_by %></td>
      <td><%=h change_order.recommended_at %></td>
      <td><%=h change_order.accepted_by %></td>
      <td><%=h change_order.accepted_at %></td>
      <td><%= link_to "Edit", edit_change_order_path(change_order) %></td>
      <td><%= link_to "Destroy", change_order, :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>

<p><%= link_to "New Change Order", new_change_order_path %></p>
